<?php
/**
 * Created by PhpStorm.
 * User: Inhere
 * Date: 2015/1/29
 * Use : 若服务需要些数据 ，则可先继承 此抽象类，再注册服务
 * File: AbstractConfigurableServiceProvider.php
 */

namespace ulue\core\ioc;

abstract class AbstractConfigurableServiceProvider implements InterfaceServiceProvider
{
    /**
     * @var array 服务设置
     */
    protected $options = [];

    /**
     * 服务ID
     * @var string
     */
    protected $serviceId;

    protected $idAliases = [];

    public function __construct(array $options = [], $serviceId = null, $idAliases = [])
    {
        $this->options = $options;

        if ($serviceId) {
            $this->serviceId = $serviceId;
        }

        if ($idAliases) {
            $this->idAliases = $idAliases;
        }
    }

}// end class AbstractConfigurableServiceProvider